
import { applyMiddleware, combineReducers,createStore } from 'redux'
import createSaga from 'redux-saga'
import count from './reducer/count'
import rootsaga  from './saga'
const sagamid=createSaga()
const reducer=combineReducers({
    count:count
})
const store=createStore(reducer,applyMiddleware(sagamid))
sagamid.run(rootsaga)
export default store